package com.xinqi.modules.course.classroom.convert;

import com.xinqi.modules.chat.chat.official.dto.req.ChatAssistantContentCreateDTO;

/**
 * 新奇助手内容构建
 */
public class AssistantContentBuild {
    /**
     * 构建CreateDTO
     *
     * @param studentId
     * @param type
     * @param messageType
     * @param messageContext
     * @return
     */
    public static ChatAssistantContentCreateDTO buildCreateDTO(Long studentId, Integer type, Integer messageType, Integer progressState, Integer submittedState, String messageContext, Long contentId, Integer times) {
        ChatAssistantContentCreateDTO chatAssistantContentCreateDTO = new ChatAssistantContentCreateDTO();
        chatAssistantContentCreateDTO.setType(type);
        chatAssistantContentCreateDTO.setMessageType(messageType);
        chatAssistantContentCreateDTO.setRecipient(studentId);
        chatAssistantContentCreateDTO.setProgressState(progressState);
        chatAssistantContentCreateDTO.setSubmittedState(submittedState);
        chatAssistantContentCreateDTO.setMessageContext(messageContext);
        chatAssistantContentCreateDTO.setMessageTime(System.currentTimeMillis());
        chatAssistantContentCreateDTO.setContentId(contentId);
        chatAssistantContentCreateDTO.setTimes(times);
        return chatAssistantContentCreateDTO;
    }
}
